using System;
using L=Science.Physics.GeneralPhysics;

namespace Serway.Chapter37
{
	/// <summary>
	/// Example01: Measuring the Wavelength of a Light Source
	/// A view screen is separated from a double-slit source 
	/// by 1.2 m. The distance between the two slits is 0.030 mm. 
	/// the second-order bright fringe (m=2) is 4.5 cm from the 
	/// center line.
	/// (A)	Determine the wavelength of the light.
	/// (B)	Calculate the distance between adjacent bright fringes.
	/// </summary>
	public class Example01
	{
		public Example01()
		{
		}
		private string result;
		public string Result
		{
			get{return result;}
		}
		public void Compute()
		{
			L.Optics obj = new L.Optics();
			obj.DistanceOfSlitSeperation = 3.0E-5;
			obj.DistanceOfFringe = 4.5E-2;
			obj.DistanceToScreen = 1.2;
			obj.OrderNumber = 2;
			obj.FindWaveLengthInYoungExperiment();
			result+=Convert.ToString(obj.WaveLength)+"\r\n";
		}	
	}
}
